package ru.ys.physics;

public class Function {
	
	private Double acceleration;
	private Double initialCoordinate;
	private Double initialVelocity;
	
	public Function() {
		acceleration = 9.8;
		initialCoordinate = 0.0;
		initialVelocity = 0.0;
	}

	public Double apply(Double time) {
		Double x = initialCoordinate + initialVelocity * time + acceleration * time * time / 2;
		return x;
	}

}
